import request from '@/utils/request'

export function fetchBrandList(data) {
  return request({
    url: '/cloud-system/getBrandList',
    method: 'post',
    data
  })
}

export function fetchBrandOne(data) {
  return request({
    url: '/cloud-system/getOneBrandDetail',
    method: 'post',
    data
  })
}

export function createBrand(data) {
  return request({
    url: '/cloud-system/createOneBrand',
    method: 'post',
    data
  })
}

export function updateBrand(data) {
  return request({
    url: '/cloud-system/updateOneBrand',
    method: 'post',
    data
  })
}

export function deleteBrand(data) {
  return request({
    url: '/cloud-system/deleteOneBrand',
    method: 'post',
    data
  })
}

export function lockBrand(data) {
  return request({
    url: '/cloud-system/lockOneBrand',
    method: 'post',
    data
  })
}

export function unlockBrand(data) {
  return request({
    url: '/cloud-system/unlockOneBrand',
    method: 'post',
    data
  })
}

export function batchLockBrand(data) {
  return request({
    url: '/cloud-system/batchLockBrand',
    method: 'post',
    data
  })
}

export function batchUnLockBrand(data) {
  return request({
    url: '/cloud-system/batchUnLockBrand',
    method: 'post',
    data
  })
}

export function batchDeleteBrand(data) {
  return request({
    url: '/cloud-system/batchDeleteBrand',
    method: 'post',
    data
  })
}
